﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace LASLogic.BusinessLayer.DataModel
{
    /// <summary>
    /// Clase que maneja las monedas del sistema
    /// </summary>
    [DataContract]
    public class Currency
    {
        #region Properties

        /// <summary>
        /// Identificador de la moneda actual
        /// </summary>
        [DataMember]
        public int CurrencyId { get; set; }
        /// <summary>
        /// Nombre de la moneda
        /// </summary>
        [DataMember]
        public string CurrencyName { get; set; }
        /// <summary>
        /// Mnemonico de la moneda
        /// </summary>
        [DataMember]
        public string CurrencyMnemonic { get; set; }
        /// <summary>
        /// Tipo de la moneda, si es sistema o local
        /// </summary>
        [DataMember]
        public string Type { get; set; }
        /// <summary>
        /// Simbolo de la moneda
        /// </summary>
        [DataMember]
        public string Symbol { get; set; }

        #endregion
        
        #region Constructor

        /// <summary>
        /// Constructor de la clase Currency, permite crear una nueva moneda
        /// </summary>
        /// <param name="currencyId">Identificador de la moneda</param>
        /// <param name="currencyName">Nombre de la moneda</param>
        /// <param name="currencyMnemonic">Mnemonico de la moneda</param>
        /// <param name="symbol">Symbolo de la moneda</param>
        public Currency(int currencyId, string currencyName, string currencyMnemonic, string symbol)
        {
            CurrencyId = currencyId;
            CurrencyName = currencyName;
            CurrencyMnemonic = currencyMnemonic;
            Symbol = symbol;
        }

        /// <summary>
        /// Constructor Vacio
        /// </summary>
        public Currency()
        {
        } 
        #endregion
    }
}
